package com.ruoyi.common.core.domain.vo;


import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.ruoyi.common.utils.StringToIntegerListDeserializer;
import com.ruoyi.common.utils.StringToLongListDeserializer;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("文件授权请求")
public class UpdateAuthGrantVO {

    @JsonDeserialize(using = StringToIntegerListDeserializer.class)
    Integer type;// 对象类型

    Long refId;// 授权对象id

    @JsonDeserialize(using = StringToLongListDeserializer.class)
    List<Integer> assignedList;// 已授权的列表

    Long fileId;// 文件id

}
